package com.meilai.project.entity.business.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author 张驰
 * @since 2022-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("customer_need")
@ApiModel(value="CustomerNeed对象", description="")
public class CustomerNeed extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "提交人id")
    private Long submitor_id;

    @ApiModelProperty(value = "客户id")
    private Long customer_id;

    @ApiModelProperty(value = "新客户的名称")
    private String new_customer_name;

    @ApiModelProperty(value = "开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin_date;

    @ApiModelProperty(value = "结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end_date;

    @ApiModelProperty(value = "备注")
    private String memo;


    public static final String SUBMITOR_ID = "submitor_id";

    public static final String CUSTOMER_ID = "customer_id";

    public static final String NEW_CUSTOMER_NAME = "new_customer_name";

    public static final String BEGIN_DATE = "begin_date";

    public static final String END_DATE = "end_date";

    public static final String MEMO = "memo";

}
